﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TournamentDatabase.Database;

namespace TournamentDatabase.Objects
{
	public class Organises : Organiser
	{
		string m_role;

		public string Role
		{
			get { return m_role; }
			set { m_role = value; }
		}

		public Organises() : this(0, "") { }
		public Organises(int mid, string role)
		{
			m_mid = mid;
			m_role = role;
		}
		public Organises(OracleDataReader odr) : base(odr)
		{
			//MemberID = int.Parse(odr["mid"]);
			//o.TournamentID = (int)odr["tid"];
			Authority = odr["authority"].ToString();
		}

        public static List<Organises> ParseOrganises(OracleDataReader odr)
        {
            List<Organises> list = new List<Organises>();
            while (odr.Read())
            {
                list.Add(new Organises());
            }
            return list;
        } 
	}
}
